package com.atgm.mall.gmmailproduct.service;

import com.atgm.mall.gmmailproduct.vo.AttrGroupRelationVo;
import com.atgm.mall.gmmailproduct.vo.AttrVo;
import com.atgm.mall.gmmailproduct.vo.resp.AttrRespVo;
import com.atgm.mall.gmmailproduct.vo.resp.GameAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atgm.common.utils.PageUtils;
import com.atgm.mall.gmmailproduct.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author pdx
 * @email 945097967@qq.com
 * @date 2021-08-20 09:07:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrEntity attrEntity);

    void updateAttr(AttrEntity attrEntity);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    /**
     * 获取游戏商品属性值
     * @param gameGoodsId
     * @return
     */
    List<GameAttrVo> queryGameGoodsAttrById(Long gameGoodsId);

    void deleteAttrById(Long id);

    PageUtils queryPageCond(Map<String, Object> params);
}

